package com.starbaba.messageManager.model;

import com.base.common.reflection.annotations.g3db_alias;
import com.base.common.reflection.annotations.g3db_ignore;
import org.apache.struts2.json.annotations.JSON;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Yukinomiu
 * @version 1.0
 */
@g3db_alias("phone_message_record")
public final class PhoneMessageRecord implements Serializable {

    @g3db_ignore
    private static final long serialVersionUID = 4612322507900258187L;

    @g3db_alias("id")
    private Long id;

    @g3db_alias("content")
    private String content;

    @g3db_alias("phonenum")
    private String phoneNum;

    @g3db_alias("ctime")
    private Date ctime;

    @g3db_alias("status")
    private Integer status;

    @g3db_alias("memo")
    private String memo;

    @g3db_alias("channel")
    private Integer channel;

    @g3db_alias("responsestr")
    private String responseStr;

    @g3db_alias("product_id")
    private Integer productId;

    public PhoneMessageRecord() {
    }

    public Long getId() {
        return id;
    }

    public PhoneMessageRecord setId(Long id) {
        this.id = id;
        return this;
    }

    public String getContent() {
        return content;
    }

    public PhoneMessageRecord setContent(String content) {
        this.content = content;
        return this;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public PhoneMessageRecord setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
        return this;
    }

    @JSON(format = "yyyy-MM-dd HH:mm:ss")
    public Date getCtime() {
        return ctime;
    }

    public PhoneMessageRecord setCtime(Date ctime) {
        this.ctime = ctime;
        return this;
    }

    public Integer getStatus() {
        return status;
    }

    public PhoneMessageRecord setStatus(Integer status) {
        this.status = status;
        return this;
    }

    public String getMemo() {
        return memo;
    }

    public PhoneMessageRecord setMemo(String memo) {
        this.memo = memo;
        return this;
    }

    public Integer getChannel() {
        return channel;
    }

    public PhoneMessageRecord setChannel(Integer channel) {
        this.channel = channel;
        return this;
    }

    public String getResponseStr() {
        return responseStr;
    }

    public PhoneMessageRecord setResponseStr(String responseStr) {
        this.responseStr = responseStr;
        return this;
    }

    public Integer getProductId() {
        return productId;
    }

    public PhoneMessageRecord setProductId(Integer productId) {
        this.productId = productId;
        return this;
    }
}
